package com.dq.order.client;

import com.dq.commonutils.dto.OrderUserVo;
import com.dq.commonutils.vo.Result;
import com.dq.order.client.fallback.UcenterClientFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;


/**
 * @project: guli_parent
 * @ClassName: UcenterClient
 * @author: dq
 * @creat: 2022/8/17 16:21
 */

@FeignClient(value = "service-ucenter" /*, fallbackFactory = UcenterClientFallBackFactory.class */)
@Component
public interface UcenterClient {

    /**
     * 根据用户id获取基本信息
     * @param userId
     * @return
     */
    @PostMapping("/educenter/member/getOrderUserInfo/{userId}")
    OrderUserVo getOrderUserInfo(@PathVariable("userId") String userId);
}
